package com.qf.springboot4.mapper;

import com.qf.springboot4.domain.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Mapper
public interface StudentMapper {

//    @Select("select * from student")
    List<Student> findAll();

    @Delete("delete from student where id=#{id}")
    int delete(Integer id);
}
